package com.aisino.progress;

import com.aisino.progress.config.Elconfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

import java.io.IOException;

@SpringBootApplication
public class SpringbootProgress01Application {

    public static void main(String[] args) throws IOException {
        ConfigurableApplicationContext run = SpringApplication.run(SpringbootProgress01Application.class, args);
        Elconfig bean = run.getBean(Elconfig.class);
        bean.outputResource();
        /*AnnotationConfigApplicationContext context =new AnnotationConfigApplicationContext(Elconfig.class);
        Elconfig bean = context.getBean(Elconfig.class);
        bean.outputResource();
        ElEntity bean1 = context.getBean(ElEntity.class);
        System.out.println(bean1.getName());
        context.close();*/
    }

}
